layui.use('form', function() {
	var form = layui.form;
	pageListStudent();

	function pageListStudent() {
		$.ajax({
			url: 'http://localhost:8080/Online-student/TeacherController/getAllTeacher',
			type: "get",
			data: {
				page: 1,
				limit: 10
			},
			dataType: "json",
			success: function(result) {
				console.log(result);
				form.val('formone', {
					"rid": result.data.list[0].rid,
					"tno":result.data.list[0].tno,
					"password":result.data.list[0].password,
					"tname":result.data.list[0].tname,
					"level":result.data.list[0].level,
					"sex":result.data.list[0].sex,
					"age":result.data.list[0].age,
					"birthday":result.data.list[0].birthday,
					"phone":result.data.list[0].phone,
					"email":result.data.list[0].email,
					"createtime":result.data.list[0].createtime,
					"updatetime":result.data.list[0].updatetime,
				});
			}
		})
	}
})


